import Vue from 'vue'
import Router from 'vue-router'
const Login = () => import('@/page/Login')
const Forget = () => import('@/page/Forget')
const Home = () => import('@/page/Home')
const Auth = () => import('@/page/Auth')
const Bindtel = () => import('@/page/Bindtel')
const Postauth = () => import('@/page/Postauth')
const Userlist = () => import('@/page/Userlist')
const Dealer = () => import('@/page/Dealer')
const Wallet = () => import('@/page/Wallet')
const Share = () => import('@/page/Share')
const Pay = () => import('@/page/Pay')
const Walletlist = () => import('@/page/Walletlist')


Vue.use(Router)

export default new Router({
	mode: 'history',
	routes: [
	    { //登录
	      path: '/',
	      name: 'Login',
	      component: Login
			},
		{ //找回密码
		  path: '/forget',
	      name: 'Forget',
	      component: Forget
			},
		{ //首页
	      path: '/home',
	      name: 'Home',
	      component: Home
			},
		{ //个人资料
			path: '/auth',
			name: 'Auth',
			component: Auth
			 },
		{ //更换手机号
			path: '/bindtel',
			name: 'Bindtel',
			component: Bindtel
		},
		{ //提交认证材料
			path: '/postauth',
			name: 'Postauth',
			component: Postauth
		},
		{ //用户
			path: '/userlist',
			name: 'Userlist',
			component: Userlist
		},
		{ //服务商
			path: '/dealer',
			name: 'Dealer',
			component: Dealer
		},
		{ //钱包
			path: '/wallet',
			name: 'Wallet',
			component: Wallet
		},
		{ //分享
			path: '/share',
			name: 'Share',
			component: Share
		},
		{ //支付
			path: '/pay',
			name: 'Pay',
			component: Pay
		},
		{ //收益列表
			path: '/walletlist',
			name: 'Walletlist',
			component: Walletlist
		}
	  ]
})
